package com.mine;


public class BusStormDemo {
//    private static long a1, a2, a3, a4, a5, a6, a7;
    private static volatile long long1;
//    private static long b1, b2, b3, b4, b5, b6, b7;
    private static volatile long long2;

    public static void main(String[] args) throws InterruptedException {
        long start = System.currentTimeMillis();
        new Thread(new Runnable() {
            @Override
            public void run() {
                for (int i = 0; i < 100000000; i++) {
                    long1++;
                }
                System.out.println(System.currentTimeMillis() - start);
            }
        }).start();
        new Thread(new Runnable() {
            @Override
            public void run() {
                for (int i = 0; i < 100000000; i++) {
                    long2++;
                }
                System.out.println(System.currentTimeMillis() - start);
            }
        }).start();
    }
}
